# Maintainer:
pkgname=py3-pyproject-metadata
pkgver=0.7.1
pkgrel=2
pkgdesc="PEP 621 metadata parsing"
url="https://github.com/FFY00/python-pyproject-metadata"
arch="noarch"
license="MIT"
depends="python3 py3-packaging"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/FFY00/python-pyproject-metadata/archive/refs/tags/$pkgver.tar.gz"
subpackages="$pkgname-pyc"
builddir="$srcdir/python-pyproject-metadata-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
a4cb97b6646b765016f047f8d3da388ab758dbf8acf5a8ee6ccb017c764a90c069e04effbef21f878be7f4b01a5090f24252372300ce7e3a0410a6eea5d98b66  py3-pyproject-metadata-0.7.1-2.tar.gz
"
